import request from '@/utils/request'

// 查询商家提现列表
export function listShopExtract(query) {
  return request({
    url: '/shop/shopExtract/list',
    method: 'get',
    params: query
  })
}

// 查询商家提现详细
export function getShopExtract(id) {
  return request({
    url: '/shop/shopExtract/' + id,
    method: 'get'
  })
}

// 新增商家提现
export function addShopExtract(data) {
  return request({
    url: '/shop/shopExtract',
    method: 'post',
    data: data
  })
}

// 修改商家提现
export function updateShopExtract(data) {
  return request({
    url: '/shop/shopExtract',
    method: 'put',
    data: data
  })
}

// 删除商家提现
export function delShopExtract(id) {
  return request({
    url: '/shop/shopExtract/' + id,
    method: 'delete'
  })
}

// 导出商家提现
export function exportShopExtract(query) {
  return request({
    url: '/shop/shopExtract/export',
    method: 'get',
    params: query
  })
}

export function shenheTshop (data) {
  console.log(data)
  return request({
    url: '/shop/shopExtract/shen',
    method: 'put',
    params: data
  })
}